package com.boge.model.dao.mappers;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.boge.model.entity.User;

public interface UserMapper {

	List<User> findAllUsers();
	
	User findUserByUserName(@Param("userName")String userName);
	
	int addUser(User user);
	
	//有条件的分页查询
	List<User> getUserListByProp(Map<String, String> params);
	
	//查询总记录数
	int getTotalCountFromUser(Map<String, String> params);
	
	User getUserByUserId(@Param("userId")int userId);
	
}
